Skip to content

Narrow DOMDocument::createElement() return type and throw type for valid constant names#5192

Merged
staabm merged 6 commits intophpstan:2.1.xfrom
janedbal:dom-document-create-element-return-type
Mar 17, 2026
Merged

Narrow DOMDocument::createElement() return type and throw type for valid constant names#5192
staabm merged 6 commits intophpstan:2.1.xfrom
janedbal:dom-document-create-element-return-type

Conversation

@janedbal
Copy link
Contributor

@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 2.2.x. PHPStan 2.2 is not going to be released for months. If your code is relevant on 2.1.x and you want it to be released sooner, please rebase your pull request and change its target to 2.1.x.

@janedbal janedbal changed the base branch from 2.2.x to 2.1.x March 10, 2026 15:52
@janedbal janedbal marked this pull request as ready for review March 10, 2026 16:24
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@janedbal janedbal changed the title Narrow DOMDocument::createElement() return type for valid constant names Narrow DOMDocument::createElement() return type and throw type for valid constant names Mar 10, 2026
@janedbal janedbal requested a review from staabm March 10, 2026 18:34
@staabm staabm requested a review from VincentLanglet March 11, 2026 06:55
@janedbal janedbal force-pushed the dom-document-create-element-return-type branch from a90687a to 48ac9e6 Compare March 16, 2026 16:00
Copy link
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will merge after todays release

@VincentLanglet
Copy link
Contributor

Release is done

@staabm
Copy link
Contributor

staabm commented Mar 17, 2026

since we had a crash bug I guess we will have another release ... maybe today.. will merge after we stabilized it

@staabm staabm merged commit 801f28f into phpstan:2.1.x Mar 17, 2026
652 checks passed
@staabm
Copy link
Contributor

staabm commented Mar 17, 2026

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support proper return value of DOMDocument::createElement, false almost never happens

4 participants